package Data_Structure.Tree;

import java.util.Arrays;

/**
 * @className: TreeNode
 * @author: 芃
 * @description: 树节点
 * @date: 2023/8/17 19:51
 */
public class TreeNode {
    public char val;//值
    public TreeNode left;//左孩子
    public TreeNode right;//右孩子

    public TreeNode(char val) {
        this.val = val;
    }

    public TreeNode() {
    }

    @Override
    public String toString() {
        return "TreeNode{" +
                "val=" + val +
                ", left=" + left +
                ", right=" + right +
                '}';
    }

}
